
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>3.6uniapp for Harmony FAQ · uniapp/uniapp-x for Harmony教程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="坚果派">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-mind-maps/mindmaps.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-ace/ace.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="2.uniapp2.html" />
    
    
    <link rel="prev" href="4.uniapp for Harmony.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"ITmxs/gitbook","types":["star","watch","fork"],"size":"small"};
    </script>

    </head>
    <body>
         
<div class="donate-modal modal">
  <div class="modal-header">
    <div>
      <span>
        <img
          id="modal-avatar"
          class="modal-avatar"
          src="http://xkapp-uat.oss-cn-hangzhou.aliyuncs.com/2e7a3f70-80ab-4b50-93ec-a04dfeef949b/avatar-100.png"
        />
      </span>
      <span id="nickname"> breeze </span>
      <p class="modal-close close" onclick="closeDonateModal()">×</p>
    </div>
    <div class="message">
      <div class="tip">
        <i></i>
        <span>随意打赏，但不要超过一顿早餐钱 💕</span>
      </div>
    </div>
  </div>
  <div class="modal-content">
    <div class="modal-pay-way">
      <div id="wxpay" onclick="showDonateImg(0)">
        <input
          type="radio"
          name="pay-way"
          value="wxpay"
          class="zs-type"
          checked="checked"
        />
        <span>
          <img
            id="wxpay-logo"
            src=""
          />
        </span>
      </div>
      <div id="alipay" onclick="showDonateImg(1)">
        <input type="radio" name="pay-way" value="alipay" class="zs-type" />
        <span>
          <img
            id="alipay-logo"
            src=""
          />
        </span>
      </div>
    </div>
    <div class="modal-pay-qrcode">
      <img id="wxpay-code" src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png" />
      <img
        id="alipay-code"
        src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202843746.png"
        hidden
      />
    </div>
  </div>
</div>
<div class="mask"></div>


<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://www.nutpi.net/" target="_blank">坚果派官网</a>
      </li><li>
        <a href="https://www.arkui.club/" target="_blank">ArkUI实战</a>
      </li><li>
        <a href="https://space.bilibili.com/480883651" target="_blank">元服务开发实践</a>
      </li><li>
        <a href="https://gitcode.com/nutpi" target="_blank">OpenHarmony应用开发</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    1.前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../chapter2/1.为什么.html">
            
                <a href="../chapter2/1.为什么.html">
            
                    
                    2.为什么要这个专栏？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    3.uniapp开发鸿蒙
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="14.背景.md">
            
                <span>
            
                    
                    3.1背景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="15.优势.html">
            
                <a href="15.优势.html">
            
                    
                    3.2优势
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="1.uniapp开发鸿蒙应用.html">
            
                <a href="1.uniapp开发鸿蒙应用.html">
            
                    
                    3.3uniapp开发鸿蒙应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="3.uniapp之uts语言.html">
            
                <a href="3.uniapp之uts语言.html">
            
                    
                    3.4uniapp之uts语言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="4.uniapp for Harmony.html">
            
                <a href="4.uniapp for Harmony.html">
            
                    
                    3.5uniapp for Harmony
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.6" data-path="5.uniapp for Harmony FAQ.html">
            
                <a href="5.uniapp for Harmony FAQ.html">
            
                    
                    3.6uniapp for Harmony FAQ
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="2.uniapp2.html">
            
                <a href="2.uniapp2.html">
            
                    
                    3.7uniapp2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="6.uniappx支持鸿蒙.html">
            
                <a href="6.uniappx支持鸿蒙.html">
            
                    
                    3.8uniappx支持鸿蒙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="7.uniapp-x支持鸿蒙.html">
            
                <a href="7.uniapp-x支持鸿蒙.html">
            
                    
                    3.9uniapp-x支持鸿蒙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="8.目前支持鸿蒙手机.html">
            
                <a href="8.目前支持鸿蒙手机.html">
            
                    
                    3.10目前支持鸿蒙手机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11" data-path="9.uniapp-x项目开发鸿蒙支持调试啦.html">
            
                <a href="9.uniapp-x项目开发鸿蒙支持调试啦.html">
            
                    
                    3.11uniapp-x项目开发鸿蒙支持调试啦
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12" data-path="10.uniapp和flutter你会选哪个来开发鸿蒙.html">
            
                <a href="10.uniapp和flutter你会选哪个来开发鸿蒙.html">
            
                    
                    3.12uniapp和flutter你会选哪个来开发鸿蒙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13" data-path="11.Flutter与uni-app的深度对比：鸿蒙开发的最佳选择竟是原生开发.md.md">
            
                <span>
            
                    
                    3.13Flutter与uni-app的深度对比：鸿蒙开发的最佳选择竟是原生开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.14" data-path="12.uniapp版本更新.html">
            
                <a href="12.uniapp版本更新.html">
            
                    
                    3.14uniapp版本更新
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.15" data-path="13.HBuilderX 4.62 开始，uni-app 支持嵌入鸿蒙原生组件.html">
            
                <a href="13.HBuilderX 4.62 开始，uni-app 支持嵌入鸿蒙原生组件.html">
            
                    
                    3.15HBuilderX 4.62开始，uni-app支持嵌入鸿蒙原生组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.16" data-path="16.uni-app x 已经完成鸿蒙等主流平台全覆盖.html">
            
                <a href="16.uni-app x 已经完成鸿蒙等主流平台全覆盖.html">
            
                    
                    3.16uni-app x 已经完成鸿蒙等主流平台全覆盖
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.17" data-path="17.uniapp如何进行条件编译到鸿蒙.html">
            
                <a href="17.uniapp如何进行条件编译到鸿蒙.html">
            
                    
                    3.17uniapp如何进行条件编译到鸿蒙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.18" data-path="18.鸿蒙Next案例分析.html">
            
                <a href="18.鸿蒙Next案例分析.html">
            
                    
                    3.18鸿蒙Next案例分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.19" data-path="19.UTS开发鸿蒙插件.md">
            
                <span>
            
                    
                    3.19UTS开发鸿蒙插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.20" data-path="20.热重载.html">
            
                <a href="20.热重载.html">
            
                    
                    3.20热重载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.21" data-path="21.调用鸿蒙原生组件.html">
            
                <a href="21.调用鸿蒙原生组件.html">
            
                    
                    3.21调用鸿蒙原生组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.22" data-path="22.从开发者视角看 uniapp 与 Flutter 的差异.html">
            
                <a href="22.从开发者视角看 uniapp 与 Flutter 的差异.html">
            
                    
                    3.22从开发者视角看 uniapp 与 Flutter 的差异
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.23" data-path="23.uniappforHarmony学习路线.html">
            
                <a href="23.uniappforHarmony学习路线.html">
            
                    
                    3.23uniappforHarmony学习路线
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    4.随机笑话-实战案例
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../chapter4/1.uni-app_x跨平台实战入门：从0到1开发HarmonyOS_5鸿蒙原生应用.html">
            
                <a href="../chapter4/1.uni-app_x跨平台实战入门：从0到1开发HarmonyOS_5鸿蒙原生应用.html">
            
                    
                    4.1 uni-app x 跨平台实战入门：从 0 到 1 开发 HarmonyOS 5 鸿蒙原生应用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    5.二十四节气
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" >
            
                <span>
            
                    
                    5.1二十四节气实战案例
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    6.UTS插件开发
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../chapter6/1.UTS开发鸿蒙插件.html">
            
                <a href="../chapter6/1.UTS开发鸿蒙插件.html">
            
                    
                    6.1 UTS开发鸿蒙插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../chapter6/2.开发uts插件.html">
            
                <a href="../chapter6/2.开发uts插件.html">
            
                    
                    6.2 开发uts插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../chapter6/3.新建鸿蒙插件.html">
            
                <a href="../chapter6/3.新建鸿蒙插件.html">
            
                    
                    6.3 新建鸿蒙插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../chapter6/4.鸿蒙使用插件.md">
            
                <span>
            
                    
                    6.4 鸿蒙使用插件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    7.鸿蒙插件实战
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../chapter7/1.开发鸿蒙插件.html">
            
                <a href="../chapter7/1.开发鸿蒙插件.html">
            
                    
                    7.1 开发鸿蒙插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../chapter7/2.uniappx插件nutpi-idcard 开发与使用指南（适配鸿蒙）.html">
            
                <a href="../chapter7/2.uniappx插件nutpi-idcard 开发与使用指南（适配鸿蒙）.html">
            
                    
                    7.2 uniappx插件nutpi-idcard开发与使用指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../chapter7/3.chinese-number-format插件.html">
            
                <a href="../chapter7/3.chinese-number-format插件.html">
            
                    
                    7.3 chinese-number-format插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../chapter7/4.calendar插件.html">
            
                <a href="../chapter7/4.calendar插件.html">
            
                    
                    7.4 calendar插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../chapter7/5.HBuilderX 中适配鸿蒙插件的安装使用指南.html">
            
                <a href="../chapter7/5.HBuilderX 中适配鸿蒙插件的安装使用指南.html">
            
                    
                    7.5 HBuilderX中适配鸿蒙插件的安装使用指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../chapter7/OpenHarmony5.0跟华为HarmonyOS之间的应用生态兼容情况.html">
            
                <a href="../chapter7/OpenHarmony5.0跟华为HarmonyOS之间的应用生态兼容情况.html">
            
                    
                    7.6 OpenHarmony与HarmonyOS兼容性
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >3.6uniapp for Harmony FAQ</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             
                <div id="vip-container">
                    <p>&#x6211;&#x4EEC;&#x5728;&#x5F00;&#x53D1;&#x7684;&#x8FC7;&#x7A0B;&#x4E2D;&#xFF0C;&#x6216;&#x591A;&#x6216;&#x5C11;&#x4F1A;&#x9047;&#x5230;&#x4E00;&#x4E9B;&#x5F00;&#x53D1;&#x65B9;&#x9762;&#x7684;&#x95EE;&#x9898;&#x3002;</p>
<p>&#x4ECA;&#x5929;&#x5C31;&#x6765;&#x7F57;&#x5217;&#x4E00;&#x4E0B;</p>
<h2 id="&#x76EE;&#x5F55;&#x7ED3;&#x6784;"><a name="&#x76EE;&#x5F55;&#x7ED3;&#x6784;" class="plugin-anchor" href="#&#x76EE;&#x5F55;&#x7ED3;&#x6784;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x76EE;&#x5F55;&#x7ED3;&#x6784;</h2>
<p>&#x4E00;&#x4E2A;uni-app&#x5DE5;&#x7A0B;&#xFF0C;&#x9ED8;&#x8BA4;&#x5305;&#x542B;&#x5982;&#x4E0B;&#x76EE;&#x5F55;&#x53CA;&#x6587;&#x4EF6;&#xFF1A;</p>
<pre><code class="lang-json">
&#x2502;&#x2500;components            &#x7B26;&#x5408;vue&#x7EC4;&#x4EF6;&#x89C4;&#x8303;&#x7684;uni-app&#x7EC4;&#x4EF6;&#x76EE;&#x5F55;
&#x2502;  &#x2514;&#x2500;comp-a.vue         &#x53EF;&#x590D;&#x7528;&#x7684;a&#x7EC4;&#x4EF6;
&#x251C;&#x2500;utssdk                &#x5B58;&#x653E;uts&#x6587;&#x4EF6;
&#x251C;&#x2500;pages                 &#x4E1A;&#x52A1;&#x9875;&#x9762;&#x6587;&#x4EF6;&#x5B58;&#x653E;&#x7684;&#x76EE;&#x5F55;
&#x2502;  &#x251C;&#x2500;index
&#x2502;  &#x2502;  &#x2514;&#x2500;index.vue       index&#x9875;&#x9762;
&#x2502;  &#x2514;&#x2500;list
&#x2502;     &#x2514;&#x2500;list.vue        list&#x9875;&#x9762;
&#x251C;&#x2500;<span class="hljs-keyword">static</span>                &#x5B58;&#x653E;&#x5E94;&#x7528;&#x5F15;&#x7528;&#x7684;&#x672C;&#x5730;&#x9759;&#x6001;&#x8D44;&#x6E90;&#xFF08;&#x5982;&#x56FE;&#x7247;&#x3001;&#x89C6;&#x9891;&#x7B49;&#xFF09;&#x7684;&#x76EE;&#x5F55;&#xFF0C;&#x6CE8;&#x610F;&#xFF1A;&#x9759;&#x6001;&#x8D44;&#x6E90;&#x90FD;&#x5E94;&#x5B58;&#x653E;&#x4E8E;&#x6B64;&#x76EE;&#x5F55;
&#x251C;&#x2500;uni_modules           &#x5B58;&#x653E;uni_module &#x8BE6;&#x89C1;
&#x251C;&#x2500;platforms             &#x5B58;&#x653E;&#x5404;&#x5E73;&#x53F0;&#x4E13;&#x7528;&#x9875;&#x9762;&#x7684;&#x76EE;&#x5F55;&#xFF0C;&#x8BE6;&#x89C1;
&#x251C;&#x2500;nativeplugins         App&#x539F;&#x751F;&#x8BED;&#x8A00;&#x63D2;&#x4EF6; &#x8BE6;&#x89C1;
&#x251C;&#x2500;nativeResources       App&#x7AEF;&#x539F;&#x751F;&#x8D44;&#x6E90;&#x76EE;&#x5F55;
&#x2502;  &#x251C;&#x2500;android            Android&#x539F;&#x751F;&#x8D44;&#x6E90;&#x76EE;&#x5F55; &#x8BE6;&#x89C1;
|  &#x2514;&#x2500;ios                iOS&#x539F;&#x751F;&#x8D44;&#x6E90;&#x76EE;&#x5F55; &#x8BE6;&#x89C1;
&#x251C;&#x2500;hybrid                App&#x7AEF;&#x5B58;&#x653E;&#x672C;&#x5730;html&#x6587;&#x4EF6;&#x7684;&#x76EE;&#x5F55;&#xFF0C;&#x8BE6;&#x89C1;
&#x251C;&#x2500;wxcomponents          &#x5B58;&#x653E;&#x5C0F;&#x7A0B;&#x5E8F;&#x7EC4;&#x4EF6;&#x7684;&#x76EE;&#x5F55;&#xFF0C;&#x8BE6;&#x89C1;
&#x251C;&#x2500;unpackage             &#x975E;&#x5DE5;&#x7A0B;&#x4EE3;&#x7801;&#xFF0C;&#x4E00;&#x822C;&#x5B58;&#x653E;&#x8FD0;&#x884C;&#x6216;&#x53D1;&#x884C;&#x7684;&#x7F16;&#x8BD1;&#x7ED3;&#x679C;
&#x251C;&#x2500;main.js               Vue&#x521D;&#x59CB;&#x5316;&#x5165;&#x53E3;&#x6587;&#x4EF6;
&#x251C;&#x2500;App.vue               &#x5E94;&#x7528;&#x914D;&#x7F6E;&#xFF0C;&#x7528;&#x6765;&#x914D;&#x7F6E;App&#x5168;&#x5C40;&#x6837;&#x5F0F;&#x4EE5;&#x53CA;&#x76D1;&#x542C; &#x5E94;&#x7528;&#x751F;&#x547D;&#x5468;&#x671F;
&#x251C;&#x2500;pages.json            &#x914D;&#x7F6E;&#x9875;&#x9762;&#x8DEF;&#x7531;&#x3001;&#x5BFC;&#x822A;&#x6761;&#x3001;&#x9009;&#x9879;&#x5361;&#x7B49;&#x9875;&#x9762;&#x7C7B;&#x4FE1;&#x606F;&#xFF0C;&#x8BE6;&#x89C1;
&#x251C;&#x2500;manifest.json         &#x914D;&#x7F6E;&#x5E94;&#x7528;&#x540D;&#x79F0;&#x3001;appid&#x3001;logo&#x3001;&#x7248;&#x672C;&#x7B49;&#x6253;&#x5305;&#x4FE1;&#x606F;&#xFF0C;&#x8BE6;&#x89C1;
&#x251C;&#x2500;AndroidManifest.xml   Android&#x539F;&#x751F;&#x5E94;&#x7528;&#x6E05;&#x5355;&#x6587;&#x4EF6; &#x8BE6;&#x89C1;
&#x251C;&#x2500;Info.plist            iOS&#x539F;&#x751F;&#x5E94;&#x7528;&#x914D;&#x7F6E;&#x6587;&#x4EF6; &#x8BE6;&#x89C1;
&#x2514;&#x2500;uni.scss              &#x5185;&#x7F6E;&#x7684;&#x5E38;&#x7528;&#x6837;&#x5F0F;&#x53D8;&#x91CF;
</code></pre>
<h2 id="uts&#x8BED;&#x8A00;&#x5728;uni-app&#x548C;uni-app-x&#x4E0B;&#x7684;&#x7F16;&#x8BD1;&#x5173;&#x7CFB;"><a name="uts&#x8BED;&#x8A00;&#x5728;uni-app&#x548C;uni-app-x&#x4E0B;&#x7684;&#x7F16;&#x8BD1;&#x5173;&#x7CFB;" class="plugin-anchor" href="#uts&#x8BED;&#x8A00;&#x5728;uni-app&#x548C;uni-app-x&#x4E0B;&#x7684;&#x7F16;&#x8BD1;&#x5173;&#x7CFB;"><i class="fa fa-link" aria-hidden="true"></i></a>uts&#x8BED;&#x8A00;&#x5728;uni-app&#x548C;uni-app x&#x4E0B;&#x7684;&#x7F16;&#x8BD1;&#x5173;&#x7CFB;</h2>
<table>
<thead>
<tr>
<th></th>
<th>uni-app</th>
<th>uni-app x</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td>&#x666E;&#x901A;&#x9875;&#x9762;&#x548C;&#x811A;&#x672C;</td>
<td>uts&#x63D2;&#x4EF6;</td>
<td>&#x666E;&#x901A;&#x9875;&#x9762;&#x548C;&#x811A;&#x672C;</td>
<td>uts&#x63D2;&#x4EF6;</td>
</tr>
<tr>
<td>Web&#x548C;&#x5C0F;&#x7A0B;&#x5E8F;</td>
<td>JS</td>
<td>JS</td>
<td>JS</td>
<td>JS</td>
</tr>
<tr>
<td>Android</td>
<td>JS</td>
<td>Kotlin</td>
<td>Kotlin</td>
<td>Kotlin</td>
</tr>
<tr>
<td>iOS</td>
<td>JS</td>
<td>Swift</td>
<td>JS(JS&#x9A71;&#x52A8;&#x65F6;)</td>
<td>Swift</td>
</tr>
<tr>
<td>HarmonyNext</td>
<td>JS</td>
<td>ArkTS</td>
<td>x</td>
<td>x</td>
</tr>
</tbody>
</table>
<h2 id="&#x6761;&#x4EF6;&#x7F16;&#x8BD1;&#x4EC5;-app-harmony&#x3001;app-&#x53EF;&#x4EE5;&#x547D;&#x4E2D;&#x9E3F;&#x8499;&#x5E73;&#x53F0;"><a name="&#x6761;&#x4EF6;&#x7F16;&#x8BD1;&#x4EC5;-app-harmony&#x3001;app-&#x53EF;&#x4EE5;&#x547D;&#x4E2D;&#x9E3F;&#x8499;&#x5E73;&#x53F0;" class="plugin-anchor" href="#&#x6761;&#x4EF6;&#x7F16;&#x8BD1;&#x4EC5;-app-harmony&#x3001;app-&#x53EF;&#x4EE5;&#x547D;&#x4E2D;&#x9E3F;&#x8499;&#x5E73;&#x53F0;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6761;&#x4EF6;&#x7F16;&#x8BD1;&#x4EC5; APP-HARMONY&#x3001;APP &#x53EF;&#x4EE5;&#x547D;&#x4E2D;&#x9E3F;&#x8499;&#x5E73;&#x53F0;</h2>
<p>&#x73B0;&#x9636;&#x6BB5;&#x6761;&#x4EF6;&#x7F16;&#x8BD1;&#x4EC5; APP-HARMONY&#x3001;APP &#x53EF;&#x4EE5;&#x547D;&#x4E2D;&#x9E3F;&#x8499;&#x5E73;&#x53F0;</p>
<pre><code class="lang-js"><span class="hljs-comment">// #ifdef APP-HARMONY</span>
<span class="hljs-built_in">console</span>.log(<span class="hljs-string">&quot;&#x4EC5;&#x9E3F;&#x8499;&#x4F1A;&#x7F16;&#x8BD1;&quot;</span>)        
<span class="hljs-comment">// #endif</span>

<span class="hljs-comment">// #ifndef APP-HARMONY</span>
<span class="hljs-built_in">console</span>.log(<span class="hljs-string">&quot;&#x4EC5;&#x975E;&#x9E3F;&#x8499;&#x4F1A;&#x7F16;&#x8BD1;&quot;</span>)                                
<span class="hljs-comment">// #endif</span>

<span class="hljs-comment">// #ifdef APP</span>
<span class="hljs-built_in">console</span>.log(<span class="hljs-string">&quot;&#x5B89;&#x5353;&#x3001;&#x82F9;&#x679C;&#x3001;&#x9E3F;&#x8499;&#x4F1A;&#x7F16;&#x8BD1;&#xFF0C;&#x5C0F;&#x7A0B;&#x5E8F;&#x548C;Web&#x4E0D;&#x4F1A;&#x7F16;&#x8BD1;&quot;</span>)        
<span class="hljs-comment">// #endif</span>

<span class="hljs-comment">// #ifndef APP</span>
<span class="hljs-built_in">console</span>.log(<span class="hljs-string">&quot;&#x5B89;&#x5353;&#x3001;&#x82F9;&#x679C;&#x3001;&#x9E3F;&#x8499;&#x4E0D;&#x4F1A;&#x7F16;&#x8BD1;&#xFF0C;&#x5C0F;&#x7A0B;&#x5E8F;&#x548C;Web&#x4F1A;&#x7F16;&#x8BD1;&quot;</span>)        
<span class="hljs-comment">// #endif</span>

<span class="hljs-comment">// #ifdef APP-PLUS</span>
<span class="hljs-built_in">console</span>.log(<span class="hljs-string">&quot;&#x5B89;&#x5353;&#x3001;&#x82F9;&#x679C;&#x4F1A;&#x7F16;&#x8BD1;&#xFF0C;&#x9E3F;&#x8499;&#x4E0D;&#x4F1A;&#x7F16;&#x8BD1;&#xFF0C;&#x5C0F;&#x7A0B;&#x5E8F;&#x548C;Web&#x4E5F;&#x4E0D;&#x4F1A;&#x7F16;&#x8BD1;&quot;</span>)        
<span class="hljs-comment">// #endif</span>

<span class="hljs-comment">// #ifndef APP-PLUS</span>
<span class="hljs-built_in">console</span>.log(<span class="hljs-string">&quot;&#x5B89;&#x5353;&#x3001;&#x82F9;&#x679C;&#x4E0D;&#x4F1A;&#x7F16;&#x8BD1;&#xFF0C;&#x9E3F;&#x8499;&#x4F1A;&#x7F16;&#x8BD1;&#xFF0C;&#x5C0F;&#x7A0B;&#x5E8F;&#x548C;Web&#x4E5F;&#x4F1A;&#x7F16;&#x8BD1;&quot;</span>)        
<span class="hljs-comment">// #endif</span>
</code></pre>
<h2 id="&#x5982;&#x4F55;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x5305;&#x540D;"><a name="&#x5982;&#x4F55;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x5305;&#x540D;" class="plugin-anchor" href="#&#x5982;&#x4F55;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x5305;&#x540D;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5982;&#x4F55;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x5305;&#x540D;</h2>
<p>&#x6253;&#x5F00; <code>AppScope\app.json5</code> &#x4FEE;&#x6539; <code>bundleName</code></p>
<p><img src="https://luckly007.oss-cn-beijing.aliyuncs.com/uPic/image-20240828074834925.png" alt="image-20240828074834925"></p>
<h2 id="&#x5982;&#x4F55;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x540D;&#x79F0;"><a name="&#x5982;&#x4F55;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x540D;&#x79F0;" class="plugin-anchor" href="#&#x5982;&#x4F55;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x540D;&#x79F0;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5982;&#x4F55;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x540D;&#x79F0;</h2>
<ol>
<li><p>&#x6253;&#x5F00; <code>AppScope\resources\base\element\string.json</code> &#x4FEE;&#x6539;&#x6570;&#x7EC4;&#x5143;&#x7D20; name &#x503C;&#x4E3A; app_name &#x5BF9;&#x5E94;&#x7684; value &#x7684;&#x503C;</p>
<p><img src="https://luckly007.oss-cn-beijing.aliyuncs.com/uPic/image-20240828075505558.png" alt="image-20240828075505558"></p>
</li>
<li><p>&#x6253;&#x5F00; <code>entry\src\main\resources\base\element\string.json</code> &#x4FEE;&#x6539;&#x6570;&#x7EC4;&#x5143;&#x7D20; name &#x503C;&#x4E3A; EntryAbility_label &#x5BF9;&#x5E94;&#x7684; value &#x7684;&#x503C;</p>
</li>
<li><p>&#x6253;&#x5F00; <code>entry\src\main\resources\en_US\element\string.json</code> &#x4FEE;&#x6539;&#x6570;&#x7EC4;&#x5143;&#x7D20; name &#x503C;&#x4E3A; EntryAbility_label &#x5BF9;&#x5E94;&#x7684; value &#x7684;&#x503C;</p>
</li>
<li><p>&#x6253;&#x5F00; <code>entry\src\main\resources\zh_CN\element\string.json</code> &#x4FEE;&#x6539;&#x6570;&#x7EC4;&#x5143;&#x7D20; name &#x503C;&#x4E3A; EntryAbility_label &#x5BF9;&#x5E94;&#x7684; value &#x7684;&#x503C;</p>
<p><img src="https://luckly007.oss-cn-beijing.aliyuncs.com/uPic/image-20240828075559891.png" alt="image-20240828075559891"></p>
</li>
</ol>
<h2 id="&#x5982;&#x4F55;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x56FE;&#x6807;"><a name="&#x5982;&#x4F55;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x56FE;&#x6807;" class="plugin-anchor" href="#&#x5982;&#x4F55;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x56FE;&#x6807;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5982;&#x4F55;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x56FE;&#x6807;</h2>
<p>&#x66FF;&#x6362;&#x4EE5;&#x4E0B;&#x6587;&#x4EF6;&#xFF0C;&#x6CE8;&#x610F;&#x6587;&#x4EF6;&#x4E0D;&#x8981;&#x6539;&#x540D;</p>
<ol>
<li>AppScope\resources\base\media\app_icon.png</li>
<li>entry\src\main\resources\base\media\foreground.png</li>
<li>entry\src\main\resources\base\media\startIcon.png</li>
</ol>
<h2 id="&#x62A5;&#x542F;&#x52A8;&#x9E3F;&#x8499;&#x5931;&#x8D25;&#xFF0C;&#x8BF7;&#x624B;&#x52A8;&#x542F;&#x52A8;&#x9E3F;&#x8499;"><a name="&#x62A5;&#x542F;&#x52A8;&#x9E3F;&#x8499;&#x5931;&#x8D25;&#xFF0C;&#x8BF7;&#x624B;&#x52A8;&#x542F;&#x52A8;&#x9E3F;&#x8499;" class="plugin-anchor" href="#&#x62A5;&#x542F;&#x52A8;&#x9E3F;&#x8499;&#x5931;&#x8D25;&#xFF0C;&#x8BF7;&#x624B;&#x52A8;&#x542F;&#x52A8;&#x9E3F;&#x8499;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x62A5;&#x542F;&#x52A8;&#x9E3F;&#x8499;&#x5931;&#x8D25;&#xFF0C;&#x8BF7;&#x624B;&#x52A8;&#x542F;&#x52A8;&#x9E3F;&#x8499;</h2>
<h3 id="windows&#x7CFB;&#x7EDF;"><a name="windows&#x7CFB;&#x7EDF;" class="plugin-anchor" href="#windows&#x7CFB;&#x7EDF;"><i class="fa fa-link" aria-hidden="true"></i></a>Windows&#x7CFB;&#x7EDF;</h3>
<ol>
<li>&#x786E;&#x4FDD;&#x8DEF;&#x5F84;&#x662F;&#x6B63;&#x786E;&#x7684;</li>
<li>&#x6CE8;&#x610F;&#xFF1A;&#x590D;&#x5236;&#x540E;&#x7684; <code>\</code> &#x8981;&#x6539;&#x6210; <code>/</code></li>
<li>&#x5982;&#x679C;&#x6B65;&#x9AA4;1&#x64CD;&#x4F5C;&#x5B8C;&#x8FD8;&#x662F;&#x4E0D;&#x884C;&#xFF0C;&#x8BF7;&#x5C1D;&#x8BD5;</li>
</ol>
<p>&#x539F;&#x8DEF;&#x5F84;&#x540E;&#x9762;&#x6DFB;&#x52A0; <code>/bin/devecostudio64.exe</code>&#xFF0C;&#x7136;&#x540E;&#x91CD;&#x542F; HBuilderX</p>
<h3 id="mac&#x7CFB;&#x7EDF;"><a name="mac&#x7CFB;&#x7EDF;" class="plugin-anchor" href="#mac&#x7CFB;&#x7EDF;"><i class="fa fa-link" aria-hidden="true"></i></a>Mac&#x7CFB;&#x7EDF;</h3>
<ol>
<li>&#x786E;&#x4FDD;&#x8DEF;&#x5F84;&#x662F;&#x6B63;&#x786E;&#x7684;&#xFF08;Mac&#x7CFB;&#x7EDF;&#x5FEB;&#x901F;&#x590D;&#x5236;&#x8DEF;&#x5F84;&#x65B9;&#x6CD5;&#x6309;&#x4F4F;option&#x952E;&#xFF09;</li>
<li>&#x5982;&#x679C;&#x6B65;&#x9AA4;1&#x64CD;&#x4F5C;&#x5B8C;&#x8FD8;&#x662F;&#x4E0D;&#x884C;&#xFF0C;&#x8BF7;&#x5C1D;&#x8BD5;&#x539F;&#x8DEF;&#x5F84;&#x540E;&#x9762;&#x6DFB;&#x52A0; <code>/Contents/MacOS/devecostudio</code>&#xFF0C;&#x7136;&#x540E;&#x91CD;&#x542F; HBuilderX</li>
</ol>
<h3 id="&#x901A;&#x8FC7;-app-plustitlenview-&#x914D;&#x7F6E;&#x9875;&#x9762;&#x53F3;&#x4E0A;&#x89D2;&#x6309;&#x94AE;&#x672A;&#x751F;&#x6548;"><a name="&#x901A;&#x8FC7;-app-plustitlenview-&#x914D;&#x7F6E;&#x9875;&#x9762;&#x53F3;&#x4E0A;&#x89D2;&#x6309;&#x94AE;&#x672A;&#x751F;&#x6548;" class="plugin-anchor" href="#&#x901A;&#x8FC7;-app-plustitlenview-&#x914D;&#x7F6E;&#x9875;&#x9762;&#x53F3;&#x4E0A;&#x89D2;&#x6309;&#x94AE;&#x672A;&#x751F;&#x6548;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x901A;&#x8FC7; app-plus:titleNView &#x914D;&#x7F6E;&#x9875;&#x9762;&#x53F3;&#x4E0A;&#x89D2;&#x6309;&#x94AE;&#x672A;&#x751F;&#x6548;</h3>
<p>&#x5F53;&#x524D;&#x5BFC;&#x822A;&#x680F;&#x672A;&#x652F;&#x6301;&#xFF0C;&#x53EF;&#x4EE5;&#x5C1D;&#x8BD5;&#x5173;&#x95ED;&#x539F;&#x751F;&#x5BFC;&#x822A;&#x680F;&#xFF0C;&#x4F7F;&#x7528;&#x81EA;&#x5DF1;&#x7684;&#x81EA;&#x5B9A;&#x4E49;&#x5BFC;&#x822A;&#x680F;&#x7EC4;&#x4EF6;&#x5B9E;&#x73B0;&#x3002;</p>
<h2 id="&#x6CE8;&#x610F;&#x4E8B;&#x9879;"><a name="&#x6CE8;&#x610F;&#x4E8B;&#x9879;" class="plugin-anchor" href="#&#x6CE8;&#x610F;&#x4E8B;&#x9879;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6CE8;&#x610F;&#x4E8B;&#x9879;</h2>
<ol>
<li>&#x79FB;&#x690D;&#x5DF2;&#x6709;&#x7684; uni-app &#x9879;&#x76EE;&#x6E90;&#x7801;&#x65F6;&#xFF0C;&#x5982;&#x6709;&#x5176;&#x4ED6; npm &#x4F9D;&#x8D56;&#xFF0C;&#x8BF7;&#x81EA;&#x884C;&#x5B89;&#x88C5;</li>
<li>&#x73B0;&#x9636;&#x6BB5;&#x6761;&#x4EF6;&#x7F16;&#x8BD1;&#x4EC5; APP-HARMONY&#x3001;APP &#x53EF;&#x4EE5;&#x547D;&#x4E2D;&#x9E3F;&#x8499;&#x5E73;&#x53F0;</li>
<li>&#x6BCF;&#x6B21;HBuilderX&#x6539;&#x52A8;&#x6E90;&#x7801;&#x540E;&#xFF0C;DevEco-Studio &#x5185;&#x9700;&#x8981;&#x70B9;&#x91CD;&#x65B0;&#x8FD0;&#x884C;&#x624D;&#x80FD;&#x751F;&#x6548;</li>
<li>&#x5982;&#x679C;&#x6A21;&#x62DF;&#x5668;&#x767D;&#x5C4F;&#x4E86;&#xFF0C;&#x5C1D;&#x8BD5;&#x91CD;&#x542F;&#x8F6F;&#x4EF6; DevEco-Studio&#xFF0C;&#x518D;&#x91CD;&#x542F;&#x9879;&#x76EE;</li>
<li>&#x5982;&#x679C;&#x6A21;&#x62DF;&#x5668;&#x65E0;&#x6CD5;&#x8FDE;&#x63A5;&#x4E86;&#xFF0C;&#x5C1D;&#x8BD5;&#x91CD;&#x542F;&#x7535;&#x8111;</li>
<li>&#x5728;HBuilderX&#x91CC;&#x8FD0;&#x884C;&#x540E;&#xFF0C;&#x9700;&#x8981;&#x518D;&#x53BB;&#x9E3F;&#x8499; DevEco Studio&#x91CC;&#x8FD0;&#x884C;</li>
<li>&#x5728;HBuilderX&#x91CC;&#x4FEE;&#x6539;&#x4EE3;&#x7801;&#x540E;&#xFF0C;&#x9700;&#x8981;&#x53BB;&#x9E3F;&#x8499; DevEco Studio&#x91CC;&#x91CD;&#x65B0;&#x8FD0;&#x884C;</li>
<li>&#x5982;&#x679C;&#x6709;&#x591A;&#x4E2A;uni-app&#x9879;&#x76EE;&#x8981;&#x7F16;&#x8BD1;&#x5230;&#x9E3F;&#x8499;&#xFF0C;&#x90A3;&#x4E48;&#x9E3F;&#x8499;&#x79BB;&#x7EBF;sdk&#x9700;&#x8981;&#x653E;&#x7F6E;&#x591A;&#x4EFD;&#xFF0C;&#x6BCF;&#x4E2A;uni-app&#x7684;manifest&#x4E2D;&#x914D;&#x7F6E;&#x4E0D;&#x540C;&#x7684;&#x79BB;&#x7EBF;sdk&#x5730;&#x5740;&#xFF0C;&#x5426;&#x5219;&#x4F1A;&#x51B2;&#x7A81;&#xFF0C;&#x9E3F;&#x8499;&#x8BBE;&#x5907;&#x4E0A;&#x76EE;&#x524D;&#x6CA1;&#x6709;&#x57FA;&#x5EA7;&#x6982;&#x5FF5;&#x3002;</li>
</ol>
<p>&#x4EE5;&#x4E0A;&#x5F00;&#x53D1;&#x95EE;&#x9898;&#x53C2;&#x8003;&#xFF1A;<a href="https://uniapp.dcloud.net.cn/tutorial/harmony/dev.html" target="_blank">https://uniapp.dcloud.net.cn/tutorial/harmony/dev.html</a></p>
<footer class="page-footer"><span class="copyright">powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2025-05-19 14:10:05
</span></footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                </div>
                <script src="https://my.openwrite.cn/js/readmore.js"></script>
                <script>
                    var enablePlugin = false;
                    var allowDomain = "localhost";
                    if(allowDomain){
                        var currentDomain = location.hostname;
                        if ($.isArray(allowDomain)) {
                            $.each(allowDomain, function(index, item) {
                                if (currentDomain == item) {
                                    enablePlugin = true;
                                    return false;
                                }
                            });
                        }else{
                           if (currentDomain == allowDomain) {
                                enablePlugin = true;
                            }
                        }
                    }else{
                        enablePlugin = true;
                    }
                    
                    if(enablePlugin){
                        var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
                        if (!isMobile) {
                            var btw = new BTWPlugin();
                            btw.init({"allowDomain":"localhost","blogId":"27976-1678928361372-483","name":"坚果派","qrcode":"https://luckly007.oss-cn-beijing.aliyuncs.com/images/image-20230316085818226.png","keyword":"鸿蒙坚果","id":"vip-container"});
                        }
                    }
                </script> 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
          <div class="book-footer">
            
            <div class="donate">
              <div></div>
              <button class="donate-btn" onclick="showModal()">赞赏</button>
            </div>
             
            <div class="copyright"></div>
            
          </div>
          
        </div>
      </div>
      
    </div>

     
    <a
      href="4.uniapp for Harmony.html"
      class="
        navigation navigation-prev
        
      "
      aria-label="Previous page: 3.5uniapp for Harmony"
    >
      <i class="fa fa-angle-left"></i>
    </a>
     
    <a
      href="2.uniapp2.html"
      class="
        navigation navigation-next
        
      "
      aria-label="Next page: 3.7uniapp2"
    >
      <i class="fa fa-angle-right"></i>
    </a>
      
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"3.6uniapp for Harmony FAQ","level":"1.3.6","depth":2,"next":{"title":"3.7uniapp2","level":"1.3.7","depth":2,"path":"chapter3/2.uniapp2.md","ref":"./chapter3/2.uniapp2.md","articles":[]},"previous":{"title":"3.5uniapp for Harmony","level":"1.3.5","depth":2,"path":"chapter3/4.uniapp for Harmony.md","ref":"./chapter3/4.uniapp for Harmony.md","articles":[]},"dir":"ltr"},"config":{"plugins":["github-buttons@2.1.0","edit-link","splitter","tbfed-pagefooter","expandable-chapters","chapter-fold","back-to-top-button","code","pageview-count","popup","search-plus","-lunr","-search","splitter","-sharing","sharing-plus","theme-lou","mind-maps","emphasize","anchors","changyan","readmore","livereload","ace","livereload"],"root":".","styles":{"website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"chapter-fold":{},"pluginsConfig":{"expandable-chapters":{}},"emphasize":{},"ace":{},"livereload":{},"splitter":{},"readmore":{"allowDomain":"localhost","blogId":"27976-1678928361372-483","name":"坚果派","qrcode":"https://luckly007.oss-cn-beijing.aliyuncs.com/images/image-20230316085818226.png","keyword":"鸿蒙坚果"},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link",".summary .divider"],"color":"#FF4848","book-anchor-title":"本章目录","copyright":{"author":"vx:nut_pie"},"forbidCopy":true,"logo":"assets/avatar.png","book-summary-title":"文章目录","search-placeholder":"输入关键字搜索","copyrightLogo":"assets/copyright.png","favicon":"assets/avatar.png","appleTouchIconPrecomposed152":"assets/avatar.png"},"changyan":{"appid":"cyvHoCPAs","conf":"0440cfc4168ba95d73cfc52dd4d5c60b"},"fontsettings":{"theme":"white","family":"sans","size":2},"mind-maps":{},"highlight":{},"back-to-top-button":{},"pageview-count":{},"github-buttons":{"repo":"ITmxs/gitbook","types":["star","watch","fork"],"size":"small"},"sharing":{"qq":false,"all":["qq","qzone","whatsapp","douban","facebook","google","instapaper","linkedin","messenger","twitter","weibo"],"douban":false,"facebook":false,"weibo":false,"twitter":false,"pocket":false,"google":false,"qzone":false},"edit-link":{"label":"编辑此页","base":"https://github.com/ITmxs/gitbook/edit/master/"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"坚果派","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://www.nutpi.net/","name":"坚果派官网"},{"target":"_blank","url":"https://www.arkui.club/","name":"ArkUI实战"},{"target":"_blank","url":"https://space.bilibili.com/480883651","name":"元服务开发实践"},{"target":"_blank","url":"https://gitcode.com/nutpi","name":"OpenHarmony应用开发"}],"footer":{"donate":{"wechat":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png","message":"随意打赏，但不要超过一顿早餐钱 💕","wxpay":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png","alipay":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202843746.png","nickname":"breeze","button":"打赏","wechatText":"微信","alipayText":"支付宝","title":"『赠人玫瑰 🌹 手有余香 』","avatar":"http://xkapp-uat.oss-cn-hangzhou.aliyuncs.com/2e7a3f70-80ab-4b50-93ec-a04dfeef949b/avatar-100.png"},"copyright":true}}},"title":"uniapp/uniapp-x for Harmony教程","language":"zh-hans","gitbook":"*","description":"uniapp/uniapp-x for Harmony电子书教程"},"file":{"path":"chapter3/5.uniapp for Harmony FAQ.md","mtime":"2025-05-19T06:10:05.939Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2025-06-30T01:19:14.211Z"},"basePath":"..","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mind-maps/mindmaps.dist.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-changyan/changyan.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-ace/ace/ace.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-ace/ace.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

